package cn.family.service.impl;

import cn.family.entity.NewsMajor;
import cn.family.mapper.NewsMajorMapper;
import cn.family.service.NewsMajorService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class NewsMajorServiceIml extends ServiceImpl<NewsMajorMapper, NewsMajor>implements NewsMajorService {
//    @Autowired
//    private NewsMajorMapper newsMajorMapper;

//    @Override
//    public Integer InsertNewsMajor(NewsMajor newsMajor){
//        Integer modifyNum = newsMajorMapper.insert(newsMajor);
//        return modifyNum;
//    }
//
//    @Override
//    public Integer UpdateNewsMajor(NewsMajor newsMajor) {
//        b
//        return newsMajorMapper.update(newsMajor,new QueryWrapper<>());
//    }
//
//    @Override
//    public List<NewsMajor> selectBy() {
//        return newsMajorMapper.selectByMap(Map<> map);
//    }
//
//    @Override
//    public Integer DeleteNewsMajor(Integer id) {
//        QueryWrapper<NewsMajor> wrapper = new QueryWrapper<>();
//        wrapper.eq("id",id);
//        return newsMajorMapper.delete(wrapper);
//    }
}
